package units;

import game.Costs;
import game.Technology;

public class Trebuchet extends AbstractUnit {
	//*******************************************
	private static final int _healthpoints = 250;
	private static final int _attackMultiple = 5;
	private static final int _attack = 200;
	private static final int _defense = 2;
	private static final int _attackquality = 30;
	private static final int[] _attackRounds = {1,2,3,4};
	private static Costs costSetting = null;	
	private static final int _buildPoints = 400;	
	//*******************************************

	Trebuchet() {
		super(_healthpoints, _attack, _defense, _attackquality, _attackMultiple, _attackRounds, _buildPoints);
		if (costSetting == null){
			costSetting = new Costs();
			costSetting.setLumberCost(300);
			costSetting.setIronCost(200);
			costSetting.setGoldCost(80);
			costSetting.setStoneCost(150);
			}
		this.setCosts(costSetting);
	}

	@Override
	int getAttackBonus() {
		return Technology.getTrebuchetAttackBonus();
	}

	@Override
	int getDefenseBonus() {
		return Technology.getTrebuchetDefenseBonus();
	}

	@Override
	int getAttackqualityBonus() {
		return Technology.getTrebuchetAttackqualityBonus();
	}

	@Override
	int getHealthpointsBonus() {
		return Technology.getTrebuchetHealthpointsBonus();
	}
}
